Patch by Alexandre Emsenhuber -- http://bugzilla.wikimedia.org/attachment.cgi?id=4500
* Parser now returns list of sections
* When a user is prohibited from creating a page, a title of "View source"
makes no sense, and there should be no "Return to [[Page]]" link.
+* (bug 12486) Protected titles now give a warning for privileged editors.
+
=== Bug fixes in 1.12 ===
}
$wgOut->addWikiText( $notice );
}
+ if( !$this->mTitle->exists() && $this->mTitle->getRestrictions( 'create' ) != array() ){
+ $wgOut->addWikiText( wfMsg( 'titleprotectedwarning' ) );
+ }
if ( $this->kblength === false ) {
$this->kblength = (int)(strlen( $this->textbox1 ) / 1024);
'protectedpagewarning' => '<strong>WARNING: This page has been locked so that only users with sysop privileges can edit it.</strong>',
'semiprotectedpagewarning' => "'''Note:''' This page has been locked so that only registered users can edit it.",
'cascadeprotectedwarning' => "'''Warning:''' This page has been locked so that only users with sysop privileges can edit it, because it is included in the following cascade-protected {{PLURAL:$1|page|pages}}:",
+'titleprotectedwarning' => '<strong>WARNING: This page has been locked so that only some users can create it.</strong>',
'templatesused' => 'Templates used on this page:',
'templatesusedpreview' => 'Templates used in this preview:',
'templatesusedsection' => 'Templates used in this section:',
Seuls les utilisateurs ayant le statut d’administrateur peuvent la modifier..'''",
'semiprotectedpagewarning' => "'''Note :''' Cette page a été protégée de telle façon que seuls les contributeurs enregistrés puissent la modifier.",
'cascadeprotectedwarning' => '<strong>ATTENTION : Cette page a été protégée de manière à ce que seuls les [[{{MediaWiki:Grouppage-sysop}}|administrateurs]] puissent l’éditer. Cette protection a été faite car cette page est incluse dans {{PLURAL:$1|une page protégée|des pages protégées}} avec la « protection en cascade » activée.</strong>',
+'titleprotectedwarning' => '<strong>ATTENTION : Cette page a été protégée de telle manière que seuls certains utilisateurs puissent la créer.</strong>',
'templatesused' => 'Modèles utilisés sur cette page :',
'templatesusedpreview' => 'Modèles utilisés dans cette prévisualisation :',
'templatesusedsection' => 'Modèles utilisés dans cette section :',
'protectedpagewarning',
'semiprotectedpagewarning',
'cascadeprotectedwarning',
+ 'titleprotectedwarning',
'templatesused',
'templatesusedpreview',
'templatesusedsection',